package com.vhall.component.entity.interactive.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author guoxin.wang
 * @date 2021/5/11
 */
@Data
@TableName("question_answers")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "QuestionAnswersEntity对象", description = "question_answers表")
public class QuestionAnswersEntity implements Serializable {

    private static final long serialVersionUID = -3759082832626799860L;

    @ApiModelProperty(value = "答案id")
    @TableId(value = "answer_id", type = IdType.INPUT)
    @JsonProperty("answer_id")
    private Integer answerId;

    @ApiModelProperty(value = "参会id")
    @TableField("join_id")
    @JsonProperty("join_id")
    private Integer joinId;

    @ApiModelProperty(value = "房间id")
    @TableField("room_id")
    @JsonProperty("room_id")
    private String roomId;

    @ApiModelProperty(value = "问卷id")
    @TableField("question_id")
    @JsonProperty("question_id")
    private Integer questionId;

    @ApiModelProperty(value = "业务扩展字段")
    @TableField("extend")
    private String extend;

    @ApiModelProperty(value = "用户id")
    @TableField("account_id")
    @JsonProperty("account_id")
    private Integer accountId;

    @TableField("created_at")
    @JsonProperty("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    @JsonProperty("updated_at")
    private LocalDateTime updatedAt;

    @TableField("deleted_at")
    @JsonProperty("deleted_at")
    private LocalDateTime deletedAt;

}
